#include <iostream>
using namespace std;
int main()
{
	int t;
	while(cin>>t){
		for(int i=0;i<t;i++){
			char a,b;
			cin>>a>>b;
			if(a>b) cout<<a<<"<"<<b<<endl;
			else if(a==b) cout<<a<<"="<<b<<endl;
			else cout<<a<<">"<<b<<endl;
		}
	}
}
